package com.qdxwx.models.member;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 会员服务
 *
 */
public class MemberType implements Serializable{

    private static final long serialVersionUID = 3697711606215422180L;

    protected int id;
    /**
     * 服务名称
     */
    protected String title;
    /**
     * 状态0正常1删除
     */
    protected Integer status;
    /**
     * 图片
     */
    protected String imageUrl;

    /*用户该类型会员的结束时间*/
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }

    @Override
    public String toString() {
        return "MemberType{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", status=" + status +
                ", imageUrl='" + imageUrl + '\'' +
                '}';
    }
}

